package com.tbit.uqbike.service.business;

import com.tbit.common.entity.pojo.dto.BarChartRepairDTO;
import com.tbit.common.entity.pojo.vo.DateResult;
import com.tbit.uqbike.object.pojo.statistics.ExportPowerLog;
import com.tbit.uqbike.object.pojo.statistics.RepairLog;

import java.util.List;

/**
 * @Author: chen
 * @Description: 维修记录
 * @Date: 创建于 16:53 2020/3/13
 */
public interface RepairLogService {

    /**
     * 维修次数日期统计
     * @param barChartRepairDTO 请求参数
     * @return List<List<DateResult>>
     */
    List<List<DateResult>> statisticsByTime(BarChartRepairDTO barChartRepairDTO);

    /**
     * 维修记录统计详细
     */
    List<RepairLog> queryPage(Integer accountId, String machineNO, String userCode, Integer accountUserId, Long startTime, Long endTime, List<Integer> regionIdList, Integer pageNO, Integer rowCount);

    /**
     * 维修记录统计详细
     */
    Integer queryCount(Integer accountId, String machineNO, String userCode, Integer accountUserId, Long startTime, Long endTime, List<Integer> regionIdList);

    /**
     * 维修次数统计导出
     */
    List<RepairLog> exportByTime(Integer accountId, Integer accountUserId, Long startTime, Long endTime, String regionIds);

    List<ExportPowerLog> getByType(Integer accountId, Integer accountUserId, Long startTime, Long endTime, Integer rowCount, Integer pageNO, List<Integer> regionIdList, Integer type);
}
